// @preview-file on clear nolog
import { React, toNode, useRef } from 'DoraX';
import { Size, Vec2 } from 'Dora';

export const designSize = Size(1280, 720);
export const winsize = Size(1600, 900);
export const fontName = "sarasa-mono-sc-regular"
export const appState = {
	isCGing: false,
};
export enum Illustration {
	wu = "Image/default/transparent.png",
	npc = "Image/role/npc.png",
	zhujue = "Image/role/主角.png",
	peijue = "Image/role/配角.png"
}


export interface Savefile {
	act: number;
	playTime: number;
	player_pos: Vec2.Type;
	tasks: string[];
	package: number[];
	progress: number[];
};

export const defaultnpcprops = {
	linzhi: {
		daiji: "Image/NPC",
		pos: Vec2(600, 227.0),
		size: 200,
		tag: 1,
		visible: false,
	},
	lajitong: {
		daiji: "Image/default",
		pos: Vec2(1000, 147.5),
		size: 143,
		tag: 2,
		visible: true,
	},
	guanggao1: {
		daiji: "Image/default",
		pos: Vec2(700, 263.0),
		size: 200,
		tag: 3,
		visible: true,
	},
	dianxiangan: {
		daiji: "Image/default",
		pos: Vec2(1400, 390.5),
		size: 170,
		tag: 4,
		visible: true,
	},
}